package com.bdqn.t362.order.servlet;

import com.alipay.api.domain.Product;
import com.bdqn.t362.order.entity.TB2COrder;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * @author lqm
 * @ClassName ${NAME}
 * @description: 确认订单
 */
@WebServlet("/OrderConfirmServlet")
public class OrderConfirmServlet extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String productId = request.getParameter("productId");
        String productNum = request.getParameter("productNum");

        request.setAttribute("productId",productId);
        request.setAttribute("productNum",productNum);
        //转发到确定订单页面
        request.getRequestDispatcher("orderPay.jsp");
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
